CC = g++
CPPFLAGS = -g -Wall 
DEFS = -D_LOG -D_DEBUG
LIBS = -lpthread -lrt
INCLUDES = 
LIB_PATH = 
OBJS = main.o \
	   defs.o \
	   sync_utils.o \
	   job.o \
	   thread.o \
	   thread_pool.o

target : main
.PHONY : target

main : $(OBJS)
	$(CC) -o $@ $^ $(LIBS)

.cpp.o:
	$(CC) -c -o $@ $^ $(CPPFLAGS) $(DEFS)

clean:
	rm -rf *.o
	rm main
